package com.micro.ai.files.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 文件收藏实体类
 * 
 * @author micro-ai
 * @since 0.0.1
 */
@Data
@TableName("file_favorites")
@Schema(description = "文件收藏信息")
public class FileFavorite implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "收藏ID", example = "favorite_123456789")
    private String id;

    /**
     * 租户ID
     */
    @Schema(description = "租户ID", example = "tenant_001")
    private String tenantId;

    /**
     * 文件ID
     */
    @Schema(description = "文件ID", example = "file_123")
    private String fileId;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID", example = "user_001")
    private String userId;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间", example = "2025-01-01 00:00:00")
    private LocalDateTime createdAt;
}

